package com.dinadi.yidi.bean;

import java.math.BigDecimal;
import java.util.List;

/**
 * author: JiaYu.He
 * Date: 2017/11/6
 * Time: 11:15
 */

public class CartItemListBean {


    private List<ContentBean> cartItemList;
    private BigDecimal allMoney;
    private int allCount;
    private boolean isAllSelect;
    private String cartItemIds;//被选中的购物条目id   集合
    private String token;



    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }


    public String getCartItemIds() {
        return cartItemIds;
    }

    public void setCartItemIds(String cartItemIds) {
        this.cartItemIds = cartItemIds;
    }


    public boolean isAllSelect() {
        return isAllSelect;
    }

    public void setAllSelect(boolean allSelect) {
        isAllSelect = allSelect;
    }

    public BigDecimal getAllMoney() {
        return allMoney;
    }

    public void setAllMoney(BigDecimal allMoney) {
        this.allMoney = allMoney;
    }

    public int getAllCount() {
        return allCount;
    }

    public void setAllCount(int allCount) {
        this.allCount = allCount;
    }

    public List<ContentBean> getCartItemList() {
        return cartItemList;
    }

    public void setCartItemList(List<ContentBean> cartItemList) {
        this.cartItemList = cartItemList;
    }

    public static class ContentBean {


        private String userId;
        private String userName;
        private boolean isSelected;
        private List<GoodDetailBean> cartItemList;

        public boolean isSelected() {
            return isSelected;
        }

        public void setSelected(boolean selected) {
            isSelected = selected;
        }


        public List<GoodDetailBean> getCartItemList() {
            return cartItemList;
        }

        public void setCartItemList(List<GoodDetailBean> cartItemList) {
            this.cartItemList = cartItemList;
        }


        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }


        public static class GoodDetailBean {
            /*"productId": "商品id",
"productTitle": "商品标题",
"coverImg": "封面",
"id": "购物车条目id",
"nameValue": "白色；xl",
"unitPrice": "单价",
"quantity": "数量",
"skuId": "skuId",
"status": "状态 【int】 1-正常 2-售罄 3-失效"*/
            private String id;
            private String coverImg;
            private String nameValue;
            private String unitPrice;
            private String quantity;
            private String skuId;
            private String status;
            private String productTitle;
            private String productId;
            private String originalPrice;//折扣价

            public String getOriginalPrice() {
                return originalPrice;
            }

            public void setOriginalPrice(String originalPrice) {
                this.originalPrice = originalPrice;
            }



            public String getProductId() {
                return productId;
            }

            public void setProductId(String productId) {
                this.productId = productId;
            }


            public String getProductTitle() {
                return productTitle;
            }

            public void setProductTitle(String productTitle) {
                this.productTitle = productTitle;
            }


            public boolean isSelected() {
                return isSelected;
            }

            public void setSelected(boolean selected) {
                isSelected = selected;
            }

            private boolean isSelected;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getCoverImg() {
                return coverImg;
            }

            public void setCoverImg(String coverImg) {
                this.coverImg = coverImg;
            }

            public String getNameValue() {
                return nameValue;
            }

            public void setNameValue(String nameValue) {
                this.nameValue = nameValue;
            }

            public String getUnitPrice() {
                return unitPrice;
            }

            public void setUnitPrice(String unitPrice) {
                this.unitPrice = unitPrice;
            }

            public String getQuantity() {
                return quantity;
            }

            public void setQuantity(String quantity) {
                this.quantity = quantity;
            }

            public String getSkuId() {
                return skuId;
            }

            public void setSkuId(String skuId) {
                this.skuId = skuId;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }


        }
    }

}
